/** tab 标签 initTabsBox **/
.tab-box{ }
.tab-box-abs{
    position: absolute;
    top: 0; bottom: 0;
    left: 0; right: 0;
}
.tab-head-box{
    position: relative;
    height: 30px;
    overflow: hidden;
}
.tab-head-box > ul{
    overflow: hidden;
    position: absolute;
    top: 0; bottom: 0;
    left: 0; right: 0;
}
.tab-head{
    float: left;
    width: 120px;
    height: 100%;
}
.tab-head-item{
    position: relative;
    width: 100%; height: 100%;
    padding: 0 8px;
    color: #666;
    line-height: 28px;
    text-align: center;
    background: #edeef0;
    border-top: solid 2px #999;
    cursor: default;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    word-break: normal; /* 防止被父级 wordwrap 样式影响 */
    word-wrap: normal;
}
.tab-head-item.hasrig{ padding-right: 20px;}
ul.tab-heads-r > .tab-head{ float: right; }
.tab-head.now{ }
.now > .tab-head-item{
    color: #3a9acd;
    font-weight: bold;
    line-height: 27px;
    background: #fff;
    border-top: solid 3px #3a9acd;
    border-left: 1px solid #dadada;
    border-right: 1px solid #dadada;
}
.tab-head-remove{
    position: absolute;
    top: 0; bottom: 0; right: 5px;
    cursor: pointer;
    width: 9px;
    background: url("../images/remove.png") no-repeat center;
}
.tab-head.now .tab-head-remove{ background-image: url('../images/remove_now.png'); }
.tab-head-remove:hover,
.tab-head.now .tab-head-remove:hover{ background-image: url('../images/remove_over.png'); }
.tab-add{
    position: absolute;
    top: 0; bottom: 0;
    right: 0; width: 30px;
    background: #fff url("../icons/ico_add.png") no-repeat center;
    cursor: pointer;
    text-align: center;
}
.tab-prev,
.tab-next{
    background: url("../images/tools.png") #fff no-repeat;
    border: solid 1px #dadada;
    border-bottom: none;
    position: absolute; display: none;
    top: 0; bottom: 0;
    width: 20px;
    cursor: pointer;
}
.tab-prev{
    left: 0;
    background-position: -153px 3px;
}
.tab-prev:hover{ background-position: -121px 3px; }
.tab-next{
    right: 0;
    background-position: -199px 3px;
}
.tab-withAdd > .tab-next{ right: 30px; }
.tab-next:hover{ background-position: -167px 3px; }
.tab-head-box.tab-scroll > .tab-prev,
.tab-head-box.tab-scroll > .tab-next{ display: block; }
.tab-head-box.tab-withAdd > ul{ right: 30px; }
.tab-head-box.tab-scroll > ul{ left: 20px; right: 20px; }
.tab-head-box.tab-withAdd.tab-scroll > ul{ right: 50px; }
.tab-cont-box{
    border: 1px solid #dadada;
    background: #fff;
}
.tab-box-abs > .tab-cont-box{
    position: absolute;
    top: 30px; bottom: 0;
    left: 0; right: 0;
}
.tab-cont{ display: none; }
.tab-box-abs > .tab-cont-box > .tab-cont{
    position: absolute;
    top: 0; bottom: 0;
    left: 0; right: 0;
    overflow: auto;
}
.tab-cont.now{ display: block; }
/* iframe 默认为 inline 因为 baseline 的作用会使其下方出现留白 */
.tab-cont > iframe{ display: block; }
/* 右键菜单 */
.context{
    font-size: 12px;
    background-color: #fff;
    border: 1px solid #ccc;
    -moz-box-shadow: 2px 2px 10px 0 rgba(128, 128, 128, 0.3);
    -webkit-box-shadow: 2px 2px 10px 0 rgba(128, 128, 128, 0.3);
    box-shadow: 2px 2px 10px 0 rgba(128, 128, 128, 0.3);
}
.context ul{ }
.context li{
    width: 120px;
    cursor: pointer;
}
.context-item{
    display: block;
    height: 25px;
    line-height: 25px;
    margin: auto 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;
    word-wrap: normal;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
}
.context > ul > li:hover,
.context > ul > li:active{ /* 悬停菜单项 */
    color: #fff;
    background: #04a6d7;
}